package day04;
import java.util.Scanner;
public class HomeWork {
    public static void main(String[] args) {

         Scanner scan1=new Scanner(System.in);
        System.out.println("1.唱2.跳3.rap4.篮球");
         int a=scan1.nextInt();
         switch (a){
             case 1:
                 System.out.println("唱");
                 break;
             case 2:
                 System.out.println("跳");
                 break;
             case 3:
                 System.out.println("rap");
                 break;
             case 4:
                 System.out.println("篮球");
                 break;
             default:
                 System.out.println("false");
         }






         Scanner scan2=new Scanner(System.in);
         int num=(int) (Math.random()*500+1);
        System.out.println("猜吧");
        int guess=scan2.nextInt();
         while (guess!=num){
             if (guess<num){
                 System.out.println("small");
             }else {
                 System.out.println("big");
             }
             System.out.println("猜吧");
             guess=scan2.nextInt();
         }
        System.out.println("victory");





         Scanner scan3=new Scanner(System.in);
         int num2=(int) (Math.random()*500+1);
         int guess2;
         do {
             System.out.println("猜吧");
             guess2=scan3.nextInt();
             if (guess2>num2){
                 System.out.println("big");
             }else if (guess2<num2){
                 System.out.println("small");
             }
             else {
                 System.out.println("victory");
             }
         }while (guess2!=num2);




         for (int num3=1;num3<=9;num3++){
             System.out.println(num3*9);
         }
         for (int num3=9;num3>=1;num3--){
             System.out.println(num3*9);
         }
         for (int times=0;times<5;times++){
             System.out.println("失败是成功它mom");
         }

    }
}
